#pragma once

#include <QMap>
#include <QVector>
#include "CharType.h"

class QString;

class CodeTable
{
    typedef QMap<QString, Char> Table;
    typedef QVector<Table> Tables;

public:
    CodeTable();

public:
    Char Encode(const QString& character, int* type = 0);

private:
    Tables tables;
};